package com.example.web_project_xianyu.entity;

import lombok.Data;

@Data
public class Chat {
    public int toId;
    public int fromId;
    public String chatText;
    public String time;
    public int productId;

    public Chat(int toId,int fromId,String chatText, String time,int productId){
        this.toId=toId;
        this.fromId=fromId;
        this.chatText=chatText;
        this.time=time;
        this.productId=productId;
    }
}
